package com.example.mbl.service;

import com.example.mbl.entity.News;
import com.example.mbl.result.PageResult;
import com.example.mbl.result.WebRestResult;
import com.example.mbl.result.business.NewsPageResult;
import com.example.mbl.result.business.NewsResult;
import com.example.mbl.result.business.SearchResult;

import java.util.List;

public interface NewsService {
    List<News> searchItemsByKeyWord(String keyword);
    WebRestResult addNews(News news);
    WebRestResult deleteNews(News news);
    WebRestResult updateNews(News news);
    WebRestResult setTopNews(News news);
    PageResult<NewsPageResult> getNewsList(String newstype,String newsdate,String newstitle,int page,int pagesize);
    NewsResult getNewsItem(String newsid);
    WebRestResult setNewsVisible(News news);
}
